//    Copyright (C) 2013  <lugocreation@gmail.com>
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
package org.jpgolay.me;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

// Referenced classes of package org.jpgolay.me:
//            Messages
public class AppMenuGUI extends JMenuBar {

    public AppMenuGUI() {
        filesM = null;
        modulesM = null;
        windowsM = null;
        helpM = null;
        openMI = null;
        exitMI = null;
        piecesMI = null;
        searchMI = null;
        stockMI = null;
        salespersonManagerMI = null;
        statisticsMI = null;
        exportMI = null;
        importMI = null;
        printerMI = null;
        appearancesM = null;
        preferencesMI = null;
        taxsMI = null;
        usersMI = null;
        aboutMI = null;
        helpMI = null;
        agencyMI = null;
        familyMI = null;
        makingMI = null;
        reportingMI = null;
        customerMI = null;
        supplierMI = null;
        itemMI = null;
        lookAndFeel1RBMI = null;
        lookAndFeel2RBMI = null;
        lookAndFeel3RBMI = null;
        lookAndFeel4RBMI = null;
        lookAndFeel5RBMI = null;
        salesListMI = null;
        buyListMI = null;
        customerListMI = null;
        supplierListMI = null;
        itemListMI = null;
        optionsM = null;
        initialize();
    }

    private void initialize() {
        setSize(250, 20);
        add(getFilesM());
        add(getModulesM());
        add(getWindowsM());
        add(getOptionsM());
        add(getHelpM());
    }

    private JMenu getFilesM() {
        if (filesM == null) {
            filesM = new JMenu();
            filesM.setText(Messages.getString("AppMenuGUI.files"));
            filesM.add(getOpenMI());
            filesM.add(getJSeparator1());
            filesM.add(getImportMI());
            filesM.add(getExportMI());
            filesM.add(getJSeparator2());
            filesM.add(getPrinterMI());
            filesM.add(getJSeparator3());
            filesM.add(getExitMI());
        }
        return filesM;
    }

    private JMenu getModulesM() {
        if (modulesM == null) {
            modulesM = new JMenu();
            modulesM.setText("Modules");
            modulesM.add(getPiecesMI());
            modulesM.add(getSearchMI());
            modulesM.add(getStockMI());
            modulesM.add(getMakingMI());
            modulesM.add(getSalespersonManagerMI());
            modulesM.add(getStatisticsMI());
        }
        return modulesM;
    }

    private JMenu getWindowsM() {
        if (windowsM == null) {
            windowsM = new JMenu();
            windowsM.setText("Tiers");
            windowsM.add(getAgencyMI());
            windowsM.add(getJSeparator15());
            windowsM.add(getCustomerMI());
            windowsM.add(getCustomerListMI());
            windowsM.add(getJSeparator14());
            windowsM.add(getSupplierMI());
            windowsM.add(getSupplierListMI());
            windowsM.add(getJSeparator13());
            windowsM.add(getItemMI());
            windowsM.add(getItemListMI());
            windowsM.add(getJSeparator12());
            windowsM.add(getFamilyMI());
            windowsM.add(getJSeparator11());
            windowsM.add(getSalesListMI());
            windowsM.add(getBuyListMI());
            windowsM.add(getJSeparator8());
            windowsM.add(getTaxsMI());
        }
        return windowsM;
    }

    private JMenu getHelpM() {
        if (helpM == null) {
            helpM = new JMenu();
            helpM.setText("?");
            helpM.add(getHelpMI());
            helpM.add(getJSeparator10());
            helpM.add(getAboutMI());
        }
        return helpM;
    }

    private JMenuItem getOpenMI() {
        if (openMI == null) {
            openMI = new JMenuItem();
            openMI.setText(Messages.getString("AppMenuGUI.open"));
            openMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return openMI;
    }

    private JMenuItem getExitMI() {
        if (exitMI == null) {
            exitMI = new JMenuItem();
            exitMI.setText(Messages.getString("AppMenuGUI.exit"));
            exitMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return exitMI;
    }

    private JMenuItem getPiecesMI() {
        if (piecesMI == null) {
            piecesMI = new JMenuItem();
            piecesMI.setText(Messages.getString("AppMenuGUI.pieces"));
            piecesMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces18x18.png")));
        }
        return piecesMI;
    }

    private JMenuItem getSearchMI() {
        if (searchMI == null) {
            searchMI = new JMenuItem();
            searchMI.setText(Messages.getString("AppMenuGUI.search"));
            searchMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/search18x18.png")));
        }
        return searchMI;
    }

    private JMenuItem getStockMI() {
        if (stockMI == null) {
            stockMI = new JMenuItem();
            stockMI.setText(Messages.getString("AppMenuGUI.stock"));
            stockMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/stock18x18.png")));
        }
        return stockMI;
    }

    private JMenuItem getSalespersonManagerMI() {
        if (salespersonManagerMI == null) {
            salespersonManagerMI = new JMenuItem();
            salespersonManagerMI.setText(Messages.getString("AppMenuGUI.salespersonmanager"));
            salespersonManagerMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/salesperson18x18.png")));
        }
        return salespersonManagerMI;
    }

    private JMenuItem getStatisticsMI() {
        if (statisticsMI == null) {
            statisticsMI = new JMenuItem();
            statisticsMI.setText(Messages.getString("AppMenuGUI.statistics"));
            statisticsMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/statistics18x18.png")));
        }
        return statisticsMI;
    }

    private JMenuItem getExportMI() {
        if (exportMI == null) {
            exportMI = new JMenuItem();
            exportMI.setText(Messages.getString("AppMenuGUI.export"));
            exportMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return exportMI;
    }

    private JMenuItem getImportMI() {
        if (importMI == null) {
            importMI = new JMenuItem();
            importMI.setText(Messages.getString("AppMenuGUI.import"));
            importMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return importMI;
    }

    private JMenuItem getPrinterMI() {
        if (printerMI == null) {
            printerMI = new JMenuItem();
            printerMI.setText(Messages.getString("AppMenuGUI.printer"));
            printerMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/printer.png")));
        }
        return printerMI;
    }

    private JMenu getAppearancesM() {
        if (appearancesM == null) {
            appearancesM = new JMenu();
            appearancesM.setText(Messages.getString("AppMenuGUI.appearance"));
            appearancesM.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
            appearancesM.add(getLookAndFeel1RBMI());
            appearancesM.add(getLookAndFeel2RBMI());
            appearancesM.add(getLookAndFeel3RBMI());
            appearancesM.add(getLookAndFeel4RBMI());
            appearancesM.add(getLookAndFeel5RBMI());
            buttonGroup = new ButtonGroup();
            buttonGroup.add(getLookAndFeel1RBMI());
            buttonGroup.add(getLookAndFeel2RBMI());
            buttonGroup.add(getLookAndFeel3RBMI());
            buttonGroup.add(getLookAndFeel4RBMI());
            buttonGroup.add(getLookAndFeel5RBMI());
        }
        return appearancesM;
    }

    private JRadioButtonMenuItem getLookAndFeel1RBMI() {
        if (lookAndFeel1RBMI == null) {
            lookAndFeel1RBMI = new JRadioButtonMenuItem();
            lookAndFeel1RBMI.setText(Messages.getString("AppMenuGUI.look1"));
            lookAndFeel1RBMI.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    firePropertyChange("look", 0, 1);
                }
            });
        }
        return lookAndFeel1RBMI;
    }

    private JRadioButtonMenuItem getLookAndFeel2RBMI() {
        if (lookAndFeel2RBMI == null) {
            lookAndFeel2RBMI = new JRadioButtonMenuItem();
            lookAndFeel2RBMI.setText(Messages.getString("AppMenuGUI.look2"));
            lookAndFeel2RBMI.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    firePropertyChange("look", 0, 1);
                }
            });
        }
        return lookAndFeel2RBMI;
    }

    private JRadioButtonMenuItem getLookAndFeel3RBMI() {
        if (lookAndFeel3RBMI == null) {
            lookAndFeel3RBMI = new JRadioButtonMenuItem();
            lookAndFeel3RBMI.setText(Messages.getString("AppMenuGUI.look3"));
            lookAndFeel3RBMI.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    firePropertyChange("look", 0, 1);
                }
            });
        }
        return lookAndFeel3RBMI;
    }

    private JRadioButtonMenuItem getLookAndFeel4RBMI() {
        if (lookAndFeel4RBMI == null) {
            lookAndFeel4RBMI = new JRadioButtonMenuItem();
            lookAndFeel4RBMI.setText(Messages.getString("AppMenuGUI.look4"));
            lookAndFeel4RBMI.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    firePropertyChange("look", 0, 1);
                }
            });
        }
        return lookAndFeel4RBMI;
    }

    private JRadioButtonMenuItem getLookAndFeel5RBMI() {
        if (lookAndFeel5RBMI == null) {
            lookAndFeel5RBMI = new JRadioButtonMenuItem();
            lookAndFeel5RBMI.setText(Messages.getString("AppMenuGUI.look5"));
            lookAndFeel5RBMI.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    firePropertyChange("look", 0, 1);
                }
            });
        }
        return lookAndFeel5RBMI;
    }

    private JMenuItem getPreferencesMI() {
        if (preferencesMI == null) {
            preferencesMI = new JMenuItem();
            preferencesMI.setText(Messages.getString("AppMenuGUI.preference"));
            preferencesMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return preferencesMI;
    }

    private JMenuItem getTaxsMI() {
        if (taxsMI == null) {
            taxsMI = new JMenuItem();
            taxsMI.setText(Messages.getString("AppMenuGUI.taxs"));
            taxsMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return taxsMI;
    }

    private JMenuItem getUsersMI() {
        if (usersMI == null) {
            usersMI = new JMenuItem();
            usersMI.setText(Messages.getString("AppMenuGUI.users"));
            usersMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return usersMI;
    }

    private JMenuItem getAboutMI() {
        if (aboutMI == null) {
            aboutMI = new JMenuItem();
            aboutMI.setText(Messages.getString("AppMenuGUI.about"));
            aboutMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return aboutMI;
    }

    private JMenuItem getHelpMI() {
        if (helpMI == null) {
            helpMI = new JMenuItem();
            helpMI.setText(Messages.getString("AppMenuGUI.help"));
            helpMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/help.png")));
        }
        return helpMI;
    }

    private JMenuItem getAgencyMI() {
        if (agencyMI == null) {
            agencyMI = new JMenuItem();
            agencyMI.setText(Messages.getString("AppMenuGUI.agency"));
            agencyMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return agencyMI;
    }

    private JMenuItem getFamilyMI() {
        if (familyMI == null) {
            familyMI = new JMenuItem();
            familyMI.setText(Messages.getString("AppMenuGUI.family"));
            familyMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return familyMI;
    }

    private JMenuItem getMakingMI() {
        if (makingMI == null) {
            makingMI = new JMenuItem();
            makingMI.setText(Messages.getString("AppMenuGUI.making"));
            makingMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/build18x18.png")));
        }
        return makingMI;
    }

    private JMenuItem getReportingMI() {
        if (reportingMI == null) {
            reportingMI = new JMenuItem();
            reportingMI.setText(Messages.getString("AppMenuGUI.reporting"));
            reportingMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return reportingMI;
    }

    private JMenuItem getCustomerMI() {
        if (customerMI == null) {
            customerMI = new JMenuItem();
            customerMI.setText(Messages.getString("AppMenuGUI.customer"));
            customerMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return customerMI;
    }

    private JMenuItem getSupplierMI() {
        if (supplierMI == null) {
            supplierMI = new JMenuItem();
            supplierMI.setText(Messages.getString("AppMenuGUI.supplier"));
            supplierMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return supplierMI;
    }

    private JMenuItem getItemMI() {
        if (itemMI == null) {
            itemMI = new JMenuItem();
            itemMI.setText(Messages.getString("AppMenuGUI.item"));
            itemMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return itemMI;
    }

    private JMenuItem getSalesListMI() {
        if (salesListMI == null) {
            salesListMI = new JMenuItem();
            salesListMI.setText(Messages.getString("AppMenuGUI.saleslist"));
            salesListMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return salesListMI;
    }

    private JMenuItem getBuyListMI() {
        if (buyListMI == null) {
            buyListMI = new JMenuItem();
            buyListMI.setText(Messages.getString("AppMenuGUI.buylist"));
            buyListMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return buyListMI;
    }

    private JMenuItem getCustomerListMI() {
        if (customerListMI == null) {
            customerListMI = new JMenuItem();
            customerListMI.setText(Messages.getString("AppMenuGUI.customerlist"));
            customerListMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return customerListMI;
    }

    private JMenuItem getSupplierListMI() {
        if (supplierListMI == null) {
            supplierListMI = new JMenuItem();
            supplierListMI.setText(Messages.getString("AppMenuGUI.supplierlist"));
            supplierListMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return supplierListMI;
    }

    private JMenuItem getItemListMI() {
        if (itemListMI == null) {
            itemListMI = new JMenuItem();
            itemListMI.setText(Messages.getString("AppMenuGUI.itemlist"));
            itemListMI.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/gui/images/empty18x18.png")));
        }
        return itemListMI;
    }

    private JSeparator getJSeparator1() {
        if (jSeparator1 == null) {
            jSeparator1 = new JSeparator();
        }
        return jSeparator1;
    }

    private JSeparator getJSeparator2() {
        if (jSeparator2 == null) {
            jSeparator2 = new JSeparator();
        }
        return jSeparator2;
    }

    private JSeparator getJSeparator3() {
        if (jSeparator3 == null) {
            jSeparator3 = new JSeparator();
        }
        return jSeparator3;
    }

    private JSeparator getJSeparator4() {
        if (jSeparator4 == null) {
            jSeparator4 = new JSeparator();
        }
        return jSeparator4;
    }

    private JSeparator getJSeparator5() {
        if (jSeparator5 == null) {
            jSeparator5 = new JSeparator();
        }
        return jSeparator5;
    }

    private JSeparator getJSeparator6() {
        if (jSeparator6 == null) {
            jSeparator6 = new JSeparator();
        }
        return jSeparator6;
    }

    private JSeparator getJSeparator8() {
        if (jSeparator8 == null) {
            jSeparator8 = new JSeparator();
        }
        return jSeparator8;
    }

    private JSeparator getJSeparator10() {
        if (jSeparator10 == null) {
            jSeparator10 = new JSeparator();
        }
        return jSeparator10;
    }

    private JSeparator getJSeparator11() {
        if (jSeparator11 == null) {
            jSeparator11 = new JSeparator();
        }
        return jSeparator11;
    }

    private JSeparator getJSeparator12() {
        if (jSeparator12 == null) {
            jSeparator12 = new JSeparator();
        }
        return jSeparator12;
    }

    private JSeparator getJSeparator13() {
        if (jSeparator13 == null) {
            jSeparator13 = new JSeparator();
        }
        return jSeparator13;
    }

    private JSeparator getJSeparator14() {
        if (jSeparator14 == null) {
            jSeparator14 = new JSeparator();
        }
        return jSeparator14;
    }

    private JSeparator getJSeparator15() {
        if (jSeparator15 == null) {
            jSeparator15 = new JSeparator();
        }
        return jSeparator15;
    }

    public JMenuItem getOpen() {
        return getOpenMI();
    }

    public JMenuItem getExit() {
        return getExitMI();
    }

    public JMenuItem getPieces() {
        return getPiecesMI();
    }

    public JMenuItem getSearch() {
        return getSearchMI();
    }

    public JMenuItem getStock() {
        return getStockMI();
    }

    public JMenuItem getSalespersonManager() {
        return getSalespersonManagerMI();
    }

    public JMenuItem getStatistics() {
        return getStatisticsMI();
    }

    public JMenuItem getExport() {
        return getExportMI();
    }

    public JMenuItem getImport() {
        return getImportMI();
    }

    public JMenuItem getPrinter() {
        return getPrinterMI();
    }

    public JMenuItem getPreferences() {
        return getPreferencesMI();
    }

    public JMenuItem getTaxs() {
        return getTaxsMI();
    }

    public JMenuItem getUsers() {
        return getUsersMI();
    }

    public JMenuItem getAbout() {
        return getAboutMI();
    }

    public JMenuItem getHelp() {
        return getHelpMI();
    }

    public JMenuItem getAgency() {
        return getAgencyMI();
    }

    public JMenuItem getFamily() {
        return getFamilyMI();
    }

    public JMenuItem getMaking() {
        return getMakingMI();
    }

    public JMenuItem getReporting() {
        return getReportingMI();
    }

    public JMenuItem getCustomer() {
        return getCustomerMI();
    }

    public JMenuItem getSupplier() {
        return getSupplierMI();
    }

    public JMenuItem getItem() {
        return getItemMI();
    }

    public JMenuItem getSalesList() {
        return getSalesListMI();
    }

    public JMenuItem getBuyList() {
        return getBuyListMI();
    }

    public JMenuItem getCustomerList() {
        return getCustomerListMI();
    }

    public JMenuItem getSupplierList() {
        return getSupplierListMI();
    }

    public JMenuItem getItemList() {
        return getItemListMI();
    }

    public void enabledAll(boolean b) {
        getOpenMI().setEnabled(b);
        getPiecesMI().setEnabled(b);
        getSearchMI().setEnabled(b);
        getStockMI().setEnabled(b);
        getSalespersonManagerMI().setEnabled(b);
        getStatisticsMI().setEnabled(b);
        getExportMI().setEnabled(b);
        getImportMI().setEnabled(b);
        getPrinterMI().setEnabled(b);
        getPreferencesMI().setEnabled(b);
        getTaxsMI().setEnabled(b);
        getUsersMI().setEnabled(b);
        getAgencyMI().setEnabled(b);
        getFamilyMI().setEnabled(b);
        getMakingMI().setEnabled(b);
        getReportingMI().setEnabled(b);
        getCustomerMI().setEnabled(b);
        getSupplierMI().setEnabled(b);
        getItemMI().setEnabled(b);
        getSalesListMI().setEnabled(b);
        getBuyListMI().setEnabled(b);
        getCustomerListMI().setEnabled(b);
        getSupplierListMI().setEnabled(b);
        getItemListMI().setEnabled(b);
    }

    public void setLookAndFell(int type) {
        switch (type) {
            case 0: // '\0'
                getLookAndFeel1RBMI().setSelected(true);
                break;

            case 1: // '\001'
                getLookAndFeel2RBMI().setSelected(true);
                break;

            case 2: // '\002'
                getLookAndFeel3RBMI().setSelected(true);
                break;

            case 3: // '\003'
                getLookAndFeel4RBMI().setSelected(true);
                break;

            case 4: // '\004'
                getLookAndFeel5RBMI().setSelected(true);
                break;

            default:
                getLookAndFeel1RBMI().setSelected(true);
                break;
        }
    }

    public int getSelectedLookAndFell() {
        if (getLookAndFeel1RBMI().isSelected()) {
            return 0;
        }
        if (getLookAndFeel2RBMI().isSelected()) {
            return 1;
        }
        if (getLookAndFeel3RBMI().isSelected()) {
            return 2;
        }
        if (getLookAndFeel4RBMI().isSelected()) {
            return 3;
        }
        return !getLookAndFeel5RBMI().isSelected() ? -1 : 4;
    }

    private JMenu getOptionsM() {
        if (optionsM == null) {
            optionsM = new JMenu();
            optionsM.setText("Options");
            optionsM.add(getPreferencesMI());
            optionsM.add(getJSeparator5());
            optionsM.add(getAppearancesM());
            optionsM.add(getJSeparator4());
            optionsM.add(getReportingMI());
            optionsM.add(getJSeparator6());
            optionsM.add(getUsersMI());
        }
        return optionsM;
    }
    private JMenu filesM;
    private JMenu modulesM;
    private JMenu windowsM;
    private JMenu helpM;
    private JMenuItem openMI;
    private JMenuItem exitMI;
    private JMenuItem piecesMI;
    private JMenuItem searchMI;
    private JMenuItem stockMI;
    private JMenuItem salespersonManagerMI;
    private JMenuItem statisticsMI;
    private JMenuItem exportMI;
    private JMenuItem importMI;
    private JMenuItem printerMI;
    private JMenu appearancesM;
    private JMenuItem preferencesMI;
    private JMenuItem taxsMI;
    private JMenuItem usersMI;
    private JMenuItem aboutMI;
    private JMenuItem helpMI;
    private JMenuItem agencyMI;
    private JMenuItem familyMI;
    private JMenuItem makingMI;
    private JMenuItem reportingMI;
    private JMenuItem customerMI;
    private JMenuItem supplierMI;
    private JMenuItem itemMI;
    private JRadioButtonMenuItem lookAndFeel1RBMI;
    private JRadioButtonMenuItem lookAndFeel2RBMI;
    private JRadioButtonMenuItem lookAndFeel3RBMI;
    private JRadioButtonMenuItem lookAndFeel4RBMI;
    private JRadioButtonMenuItem lookAndFeel5RBMI;
    private ButtonGroup buttonGroup;
    public static final int LOOK1 = 0;
    public static final int LOOK2 = 1;
    public static final int LOOK3 = 2;
    public static final int LOOK4 = 3;
    public static final int LOOK5 = 4;
    private JSeparator jSeparator1;
    private JSeparator jSeparator2;
    private JSeparator jSeparator3;
    private JSeparator jSeparator4;
    private JSeparator jSeparator5;
    private JSeparator jSeparator6;
    private JSeparator jSeparator8;
    private JSeparator jSeparator10;
    private JSeparator jSeparator11;
    private JSeparator jSeparator12;
    private JSeparator jSeparator13;
    private JSeparator jSeparator14;
    private JSeparator jSeparator15;
    private JMenuItem salesListMI;
    private JMenuItem buyListMI;
    private JMenuItem customerListMI;
    private JMenuItem supplierListMI;
    private JMenuItem itemListMI;
    private JMenu optionsM;
}
